<html>
<head>
<title>Folders</title>
        <meta name="layout" content="main" />
</head>
<body>
<table>
Response Code: ${rootFolders.responseCode}


<a href="<g:createLink action="createFolder" />">Create folder</a>
<a href="<g:createLink action="addChildFolderForm" />">Create childfolder</a>
<a href="<g:createLink action="folderToContentForm" />">folder to content</a>


<hr>
<h1>Root Folders</h1>
<ul>
                    <g:each in="${rootFolders.folderHolders}" status="i" var="folderHolderInstance">
                       
                       
                                
                   	  <g:each in="${folderHolderInstance.folderHolder}"  var="fh">
                   		<li>
                   		
                   		                 <g:link action="editFolder"  params="[folderId:fh.id]">${fh.name}</g:link>
                   		                 
                   	
                   		<a href="<g:createLink action='findChildFolders' id="${fh.id}"/>">view children</a>
                   		
    
                   		
                   		
                   		                  <g:link action="deleteFolder"  params="[folderId:fh.id]">delete</g:link>
                   		
                   		</li>         
                   		  </g:each>
                   		
                   		     
                     
                    </g:each>

</ul>


<h1>Child Folders</h1>
<ul>
                    <g:each in="${childFolders?.folderHolders?}" status="i" var="folderHolderInstance">
                       
                       
                                
                   	  <g:each in="${folderHolderInstance.folderHolder}"  var="fh">
                   		<li>${fh.name}  ${fh.id}</li>         
                   		  </g:each>
                   		
                   		     
                     
                    </g:each>

</ul>



</body>
</html>